package cn.kuick.match2.test6;

public class WildcardPatternMatching {

	public static boolean isMatch(String text, String patten) {
		patten = patten.replace("*", "(.*)");
		patten = patten.replace("?", "(.?)");
		return text.matches(patten);
	}
	
	public static void main(String[] args) {
		boolean output = isMatch("abcde", "?*d?");
		System.out.println(output);
	}

}
